<?php


class App_Models_Video
{
    public function get_videos()
    {
        $db = Core_Db::instance();

        $video = $db->query("SELECT * FROM `video`;");

        if ($video) {

            return $video;
        } else {
            return false;
        }
    }
    
    public function get_video($id)
    {
        $db = Core_Db::instance();

        $video = $db->query("SELECT * FROM `video` WHERE `id`='". mysql_real_escape_string($id)."';");

        if ($video) {

            return $video;
        } else {
            return false;
        }
    }


}

?>